package joindemo.common.constants;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * 日志相关常量
 * @author pym
 */
public class LogConstants {
    
    // 私有构造防止实例化
    private LogConstants() {}

    /**
     * 需要脱敏的字段名称列表
     * 包含：密码、Token、手机号、邮箱、身份证等
     */
    public static final Set<String> SENSITIVE_KEYS = new HashSet<>(Arrays.asList(
            "password", "pwd", "oldpassword", "newpassword", "confirm_password",
            "token", "accesstoken", "authorization",
            "mobile", "phone", "telephone",
            "email", "mail",
            "idcard", "identity"
    ));
}